<?php

use think\facade\Route;

/** 后台地址 */
Route::group('admin/address', function () {
    Route::get('list', 'addrList');
    Route::delete('<ids>$', 'delAddrs')->pattern(['ids' => '[\d,]+']);
})->prefix('\app\mall\service\address\admin\Address@')->middleware(['adminRoute']);

/** 前台地址 */
Route::group('address', function () {
    Route::get('list', 'addrList');
    Route::post('add', 'addAddr');
    Route::put('default', 'setDefault');
    Route::put('update', 'updateAddr');
    Route::delete('del', 'delAddr');

})->prefix('\app\mall\service\address\Address@');
